import store from '@/store'

export default {
  data() {
    return {
      test: '123'
    }
  },
  methods: {
    checkPermission(btnMark) {
      const { token, userInfo } = store.state.user
      if (!token) return false
      const points = userInfo.roles.points
      return points.includes(btnMark)
    }
  }
}
